From a1a1b2c95150b9a41657e335600eb92fbe24d732 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 25 May 2010 11:00:55 +0100 Subject: [PATCH] libxl: small build fix to pass uint8_t to tolower(). Signed-off-by: Christoph Egger --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 5c84d33e1d..76b8b9972f 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1226,7 +1226,7 @@ static int64_t parse_mem_size_kb(char *mem) if (strlen(endptr) > 1) return -1; - switch (tolower(*endptr)) { + switch (tolower((uint8_t)*endptr)) { case 't': kbytes <<= 10; case 'g': -- 2.30.2